<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>edit</title>
</head>
<body>
<form action="/edit" method="post">
    <table align="center" border="1px" cellpadding="0px" cellspacing="0px" width="20%">
        <tr align="center">
            <input type="hidden" name="id" value="${l.id}">
            <th>姓名</th>
            <td><input type="text" name="name" value="${l.name}"></td>
        </tr>
        <tr align="center">
            <th>日期</th>
            <td><input type="text" name="date" value="${l.date}"></td>
        </tr>
        <tr align="center">
            <th>是否上门</th>
            <td><input type="text" name="shangmen" value="${l.shangmen}"></td>
        </tr>
        <tr align="center">
            <th>来源</th>
            <td><input type="text" name="laiyuan" value="${l.laiyuan}"></td>
        </tr>
        <tr align="center">
            <th>年级</th>
            <td>
                <select name="nianji">
                    <#list list as n>
                        <option <#if l.nianji == n.nianji>selected="selected"</#if> value="${n.id}">${n.nianji}</option>
                    </#list>
                </select>
            </td>
        </tr>
        <tr align="center">
            <td colspan="2"><input type="submit" value="修改"></td>
        </tr>
    </table>
</form>
</body>
</html>